Let Γ=(V,E) be a graph of order p. Recently, the Sombor index is introduced, defined asSO(Γ)=∑vivj∈E(Γ)dΓ(vi)2+dΓ(vj)2, where dΓ(vi) is the degree of the vertex vi in Γ. Cruz and Rada [4] obtained an upper bound on the Sombor index of unicyclic and bicyclic graphs of order p, but did not characterize the extremal graphs. In the same paper, they mentioned that the maximal graphs over the set of unicyclic and bicyclic graphs with respect to Sombor index, is an interesting problem that remains open. In this paper we completely solve these problems.